using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class webadmin_controls_admin_left_menu : System.Web.UI.UserControl
{
    public DataTable menuMain;
    public string _isDisplay = "none";

    public string getLink(string ma_thuc_don)
    {
        string[] strArray = ma_thuc_don.Split(new char[] { '?' });
        if (strArray.Length > 1)
        {
            return ("../pages/" + strArray[0].ToString() + ".aspx?" + strArray[1].ToString());
        }
        return ("../pages/" + ma_thuc_don + ".aspx");
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        this.menuMain = (DataTable)base.Session["menuMain"];
        switch(Session["ma_nhom_nd"].ToString().Trim())
        {
			case "adminGroup":
				panel_admin.Visible = true;
				break;
			case "adminNews":
				panel_tintuc.Visible = true;
				break;
			case "adminNTV":
				panel_NTV.Visible = true;
				break;				
			case "adminVTN":
				panel_VTN.Visible = true;
				break;	
        }
    }
}
